import request from '../utils/request'
const api_name = '/teacher'

export default{
    // 获取首页的讲师和课程数据
    getPagedList(page,limit){
        return request({
            url:`http://39.98.120.230:8080/api/teacher/search/${page}/${limit}`,
            method:'post'
        })
    },
    // 获取讲师详情
    getTeacherDetail(id){
        return request({
            url:`http://39.98.120.230:8080/api/teacher/detailinfo/${id}`,
            method:'get'
        })
    }
}